<?php
    require_once dirname(dirname(__FILE__)) . '/config/config.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_DAO . 'dao_general.php';

    /**
     * Description of api_general
     * @author Viet Anh
     */
    class api_general
    {

        public static function check_option($option_name)
        {
            $dao_general = new dao_general();

            return $dao_general->check_option($option_name);
        }

        public static function set_option($option_name, $option_value)
        {
            $dao_general = new dao_general();

            return $dao_general->set_option_value($option_name, $option_value);
        }

        public static function get_option($option_name)
        {
            $dao_general = new dao_general();

            return $dao_general->get_option_value($option_name);
        }
    }
